from zhanshop.env import Env
from zhanshop.app import App

cache = {
    "host": App.make(Env).get('cache.host', "127.0.0.1"),
    "port": int(App.make(Env).get('cache.port', "6379")),
    "password": App.make(Env).get('cache.pwd', ""),
    "db": int(App.make(Env).get('cache.dbname', "0")),
    "socket_timeout": int(App.make(Env).get('cache.timeout', "3")),
    "socket_connect_timeout": int(App.make(Env).get('cache.timeout', "3")),
}